package com.atguigu.desaes;

import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException;
import com.sun.org.apache.xml.internal.security.utils.Base64;

public class TestBase64 {

    public static void main(String[] args) throws Base64DecodingException {
        String str = "TU0jV0xBTiNVYys5bEdiUjZlNU45aHJ0bTdDQStBPT0jNjQ2NDY1Njk4IzM5OTkwMDAwMzAwMA==";

        String str1 = new String(Base64.decode(str));
        String str2 = Base64.decode(str).toString();

        System.out.println("str1 = " + str1);
        System.out.println("str2 = " + str2);
    }
}
